package Array;

import org.junit.Test;

/**
 * @BelongsProject: SeniorArchitect-LeetCode
 * @BelongsPackage: Array
 * @Author: zhuangxiaoyan
 * @CreateTime: 2023-10-19  22:22
 * @Description: TODO
 * @Version: 1.0
 */
public class 找出字符串中第一个匹配项的下标28 {

    public int strStr(String haystack, String needle) {
        return haystack.indexOf(needle);
    }

    @Test
    public void test(){
        int i = strStr("leetcode", "leeto");
        System.out.println(i);
    }
}
